package BizLogic;

import java.sql.Date;
import java.sql.SQLException;
import java.util.ArrayList;

import model.BookingDTO;
import dao.BookingDAO;
import dao.DAOFactory;

public class ReportbyStaffManager {
	private BookingDAO bookingDAO;
	public ReportbyStaffManager(){
		bookingDAO=DAOFactory.loadInstance().getBookingDAO();
	}
	
	public ArrayList<BookingDTO> byStaff(String StaffID)
	{
		ArrayList<BookingDTO> staffUsage=null;
		try {
			staffUsage=bookingDAO.ViewbyStaff(StaffID);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return staffUsage;
	}
}
